@model IList<EFCoreBookStore.Models.Author>

<div class="">
    <div class="page-title">
        <div class="title_left">
        <h3>Authors</h3>
        </div>

        <div class="title_right">
            <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                <div class="input-group">
                <input type="text" class="form-control" placeholder="Search for...">
                <span class="input-group-btn">
                    <button class="btn btn-default" type="button">Go!</button>
                </span>
                </div>
            </div>
        </div>
    </div>

    <div class="clearfix"></div>

    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_title">
                <h2>List of Authors</h2>
                <ul class="nav navbar-right panel_toolbox">
                    <li><a asp-controller="Author" asp-action="Create"><i class="fa fa-plus"></i> Add Data</a></li>
                </ul>
                <div class="clearfix"></div>
                </div>

                <div class="x_content">
                    <div class="table-responsive">
                        <table class="table table-striped jambo_table bulk_action">
                        <thead>
                            <tr class="headings">
                                <th>
                                    <input type="checkbox" id="check-all" class="flat">
                                </th>
                                <th class="column-title" style="width: 5%">@Html.DisplayNameFor(model => model.FirstOrDefault().AuthorID)</th>
                                <th class="column-title" style="width: 45%">@Html.DisplayNameFor(model => model.FirstOrDefault().Name)</th>
                                <th class="column-title" style="width: 40%">@Html.DisplayNameFor(model => model.FirstOrDefault().Email)</th>
                                <th class="column-title no-link last" style="width: 10%"><span class="nobr">Action</span></th>
                            </tr>
                        </thead>

                        <tbody>
                            @{ var odd = false; }
                            @foreach (var item in Model){
                            <tr class="@(odd ? "odd": "even") pointer">
                                <td class="a-center ">
                                    <input type="checkbox" class="flat" name="table_records">
                                </td>
                                <td class=" ">@item.AuthorID</td>
                                <td class=" ">@item.Name</td>
                                <td class=" ">@item.Email</td>
                                <td class=" last">
                                    <a asp-controller="Author" asp-action="Edit" asp-route-id="@item.AuthorID">Edit</a> | 
                                    <a asp-controller="Author" asp-action="Delete" asp-route-id="@item.AuthorID">Delete</a>
                                </td>
                            </tr>
                            odd = !odd;
                            }
                            <!--
                            <tr class="odd pointer">
                                <td class="a-center ">
                                    <input type="checkbox" class="flat" name="table_records">
                                </td>
                                <td class=" ">121000039</td>
                                <td class=" ">May 23, 2014 11:30:12 PM</td>
                                <td class=" last"><a href="#">View</a></td>
                            </tr>
                            -->
                        </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>